import { RootStackParamTypeList } from '@/navigation/StackParamType';
import { NavigationProp, useNavigation } from '@react-navigation/native';
import { Button, Text, View } from 'react-native';

const MyScreen = () => {
  const navigation = useNavigation<NavigationProp<RootStackParamTypeList>>();

  return (
    <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
      <Text>My Screen</Text>
      <Button
        title="Go to Home"
        onPress={() => navigation.navigate('SettingScreen')}
      />
    </View>
  );
};

export default MyScreen;
